<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>元素属性</title>
</head>
<body>
<form>
  <input type="text"
         maxlength="4"
         autofocus
         name="username"
         value="张三" >
</form>
</body>
</html>